//
//  CapusDetailVideoItemCell.m
//  ShowYork
//
//  Created by hxh on 2021/3/26.
//  Copyright © 2021 hxh. All rights reserved.
//

#import "CampusPreviewPicItemCell.h"

@interface CampusPreviewPicItemCell ()
@property (nonatomic,strong)UIImageView *contentImgView;
@end

@implementation CampusPreviewPicItemCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setUI];
    }
    return self;
}

- (void)setUI{
    
    self.contentImgView = [[UIImageView alloc]init];
    self.contentImgView.contentMode = UIViewContentModeScaleAspectFill;
    self.contentImgView.layer.masksToBounds = YES;
    self.contentImgView.backgroundColor = RGBA(240, 240, 240, 1);
    [self.contentView addSubview:self.contentImgView];
    
    [self.contentImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.equalTo(self.contentView);
    }];
}
- (void)setModel:(CampusSchoolPictureItemModel *)model{
    _model = model;
    [self.contentImgView sd_setImageWithURL:[NSURL URLWithString:model.cover]];
}
@end
